from django.contrib.auth.models import AbstractUser

from apps.vadmin.models.models import CoreModel
from django.db.models import (
    ImageField,
    IntegerField,
    ForeignKey,
    CharField,
    TextField,
    ManyToManyField,
    CASCADE,
)


class ReadProfile(AbstractUser, CoreModel):
    groups = CharField(verbose_name="分组", max_length=255, null=True, blank=True)
    user_permissions = CharField(verbose_name="用户权限", max_length=255, null=True, blank=True)
    avatar = ImageField(
        verbose_name="头像",
        upload_to="avatar/%Y/%m/%d/",
        null=True,
        blank=True,
        help_text="头像",
    )

    class Meta:
        verbose_name = "读者信息表"
        app_label = 'reader'
